package com.xja.dubbo.util;

/**
 * @author ycz
 * @create 2021-12-07-15:22
 */
public class PageResult {

    //该类表示返回一共页面的数据
    private Integer code;//代号，编码
    private String status;
    private String message;//信息
    //结果
    private Object object;

    public PageResult() {
    }

    public static PageResult getPageResult(Integer code, String status, String message, Object object) {
        PageResult pageResult = new PageResult();
        pageResult.code = code;
        pageResult.status = status;
        pageResult.message = message;
        pageResult.object = object;

        return pageResult;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
